<?php

class Catalogue_Table_Attribute_Enum extends Workset_Db_Table {

	protected $_name = 't_attr_enum';

	protected $_primary = 'id';

	protected $_referenceMap = array(
        'attribute' => array(
            'columns' 		=> 'attr_id',
            'refTableClass' => 'Catalogue_Table_Attribute',
            'refColumns' 	=> 'id'
        )
    );

	function getById($id) {
		return $this->fetchRow(array(
			'id = ?' => (int)$id,
			'enum_value > 0'
		));
	}

}

?>